package com.wgz.flag.mapper;

import com.wgz.flag.entity.Contact;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface ContactMapper {
    List<Contact> selectByUserId(Long userId);

    Contact selectByUserIdAndFriendId(Long userId, Long friendId);

    int insert(Contact contact);

    int update(Contact contact);

    int delete(Long id);
}